#include <stdio.h>

int X(int n) {
	if(n<=3) return 1;
	else return X(n-2)+X(n-4)+1;
}


int main() {
	printf("%d\n", X(8));
	printf("%d\n", X(X(8)));

	return 0;
}
